import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/AboutView.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/LoginView.vue')
  },
  {
    path: '/carOrder3',
    name: 'carOrder3',
    component: () => import('../views/CarOrderView3.vue')
  },
  {
    path: '/car',
    name: 'car',
    component: () => import('../views/CarView.vue')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('../views/RegisterView.vue')
  },
  {
    path: '/password',
    name: 'password',
    component: () => import('../views/PasswordView.vue')
  },
  {
    path: '/chat',
    name: 'chat',
    component: () => import('../views/CatView.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
